/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package testGUI;


import GUI.AddToSklad;
import GUI.LoginForm;
import GUI.UserCard;
import GUI.VisitInfo;
import functions.Dogs;
import functions.Users;
import javax.swing.UIManager;
import junit.framework.TestCase;
import junit.framework.TestSuite;
import junit.swingui.TestRunner;
import model.Database;
import model.Dog;
import model.User;

/**
 *
 * @author JArik
 */
public class testAddSkald extends TestCase{

    public testAddSkald(String name)
    {
        super(name);
    }

    public static void main(String [] args)
    {
        //TestRunner runner = new TestRunner();
        //TestSuite suite = new TestSuite();
        //suite.addTest(new testUserCard("testVisits"));
        
    }

    @SuppressWarnings("empty-statement")
    public void testVisits() throws Exception
    {
        UIManager.setLookAndFeel("com.sun.java.swing.plaf.windows.WindowsLookAndFeel");
        Database.connect("dogy","dogy", "q1w2e3");
        
        AddToSklad sklad = new AddToSklad(null,null,null);
        sklad.setMinimumSize(sklad.getPreferredSize());
        sklad.setVisible(true);
        while(sklad.isVisible()) {
            Thread.sleep(100);
        }
        
    }
}
